package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

@TableMeta(name = "VC_UPDATETOKEN", title = "图片上传TOKEN")
public class VCUpdateToken {

    @FieldMeta(name = "UPLOAD_URL", title = "上传地址", length = 1024)
    private String uploadUrl;

    @FieldMeta(name = "START_TIME", title = "Token开始时间")
    private long startTime;

    @FieldMeta(name = "VENDOR", title = "供应商", length = 20, primary = true)
    private String vendor;

    public VCUpdateToken() {
    }

    public VCUpdateToken(String uploadUrl, long startTime) {
        this.uploadUrl = uploadUrl;
        this.startTime = startTime;
    }

    public VCUpdateToken(String uploadUrl, long startTime, String vendor) {
        this.uploadUrl = uploadUrl;
        this.startTime = startTime;
        this.vendor = vendor;
    }

    public String getUploadUrl() {
        return uploadUrl;
    }

    public void setUploadUrl(String uploadUrl) {
        this.uploadUrl = uploadUrl;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    @Override
    public String toString() {
        return "VCUpdateToken{" +
                "uploadUrl='" + uploadUrl + '\'' +
                ", startTime=" + startTime +
                '}';
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(VCUpdateToken.class);
    }
}
